package com.woniu.apartment.service;

import java.util.List;

import com.woniu.apartment.myVo.PopularApartmentVo;

import com.woniu.apartment.vo.ApartmentVo;
import com.woniu.apartment.domain.ApartmentMain;

/**
 * 公寓Service接口
 * 
 * @author yy
 * @date 2023-04-03
 */
public interface IApartmentMainService 
{
    /**
     * 查询公寓
     * 
     * @param id 公寓主键
     * @return 公寓
     */
    public ApartmentMain selectApartmentMainById(Long id);

    /**
     * 查询公寓列表
     * 
     * @param apartmentMain 公寓
     * @return 公寓集合
     */
    public List<ApartmentMain> selectApartmentMainList(ApartmentMain apartmentMain);

    /**
     * 新增公寓
     * 
     * @param apartmentMain 公寓
     * @return 结果
     */
    public int insertApartmentMain(ApartmentMain apartmentMain);

    /**
     * 修改公寓
     * 
     * @param apartmentMain 公寓
     * @return 结果
     */
    public int updateApartmentMain(ApartmentMain apartmentMain);

    /**
     * 批量删除公寓
     * 
     * @param ids 需要删除的公寓主键集合
     * @return 结果
     */
    public int deleteApartmentMainByIds(Long[] ids);

    /**
     * 删除公寓信息
     * 
     * @param id 公寓主键
     * @return 结果
     */
    public int deleteApartmentMainById(Long id);


    List<PopularApartmentVo> searchNearbyPopularCityApartmentList(String cityId);

    List<PopularApartmentVo> SearchCityOrUniversityOrApartmentNameForList(String searchContent);


    ApartmentVo selectAllInfoById(Long id);
}
